# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyvnc
_pkgname=pyVNC
pkgver=0.1
pkgrel=5
url='https://github.com/cair/pyVNC'
arch=('any')
license=('GPL')
pkgdesc='A Python wrapper for VNC client operations.'
depends=('python' 'libvncserver')
makedepends=('python' 'python-distribute')
_commit=04fb3c02dbfd0cd491f2e66a6527814b524831f0
source=("$url/archive/$_commit.tar.gz")
sha512sums=('d5f5f023e3b56a760d585254c4304d3b6b86770fcf61cf39055ecbc015e0ca7e1518509e68b18bdf3a3ee99c45b9f0089177407766804138029bd4c9514695f9')

build() {
  cd "$_pkgname-$_commit"

  python setup.py build
}

package() {
  cd "$_pkgname-$_commit"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

